package com.henghe.frame.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.henghe.frame.common.entity.BaseEntity;
import com.henghe.frame.ddl.annotation.Comment;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * Description:
 * Author: LiuWenQing
 * Datetime: 2024/9/24 13:58
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("sys_dept")
public class SysDept extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @Comment("组织名称")
    private String deptName;

    @Comment("组织代码")
    private String deptCode;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long parentId;

    @Comment("父级组织名称")
    private String parentDeptName;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long managerUserId;

    @Comment("组织负责人")
    private String managerUserName;



}
